package com.test.utils;

import java.util.Random;

public class PhoneUtil {

    public static String generateValidPhoneNumber() {
        String[] prefixes = {"13", "14", "15", "16", "17", "18", "19"};
        String prefix = prefixes[new Random().nextInt(prefixes.length)];

        StringBuilder phoneNumber = new StringBuilder(prefix);
        for (int i = 0; i < 9; i++) {
            phoneNumber.append(new Random().nextInt(10));
        }

        return phoneNumber.toString();
    }
}
